import Vue from 'vue'
import Router from 'vue-router'

import Home from '@/components/home'
import Customer from '@/components/customerCase'
import Contact from '@/components/contact'

import Cinema from '@/components/cinema'
import Catering from '@/components/catering'
import Super from '@/components/super'

import News from '@/components/news'

Vue.use(Router)

let router = new Router(
	{
		mode:'history',
		base:'/home/',
		routes:[
			{
				path:'/',
				component:Home,
			},
			{
				path:'/cinema',
				component:Cinema
			},
			{
				path:'/catering',
				component:Catering
			},
			{
				path:'/super',
				component:Super
			},
			{
				path:'/customer',
				component:Customer
			},
			{
				path:'/contact',
				component:Contact
			},
			{
				path:'/news/:id',
				name:'news',
				component:News
			}
		]
	}
)
export default router
